package com.itheima.dao;

import com.itheima.pojo.Member;
import com.itheima.pojo.Order;
import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface OrderDao {
    Integer queryOrderDate(@Param("orderDate") String orderDate);

    Map<String, Integer> queryOrderPeopleNumber(@Param("orderDate") String orderDate);

    Member queryMemberById(@Param("telephone") String telephone);

    void addMember(Member member);

    Order notRepeatOrder(@Param("id")Integer id, @Param("orderDate")String orderDate, @Param("setmealId") String setmealId);

    void addOrder(Order order);


    Order queryOrderInfo(@Param("id") Integer id);

    String queryMemberName(@Param("memberId") Integer memberId);

    String querySetmealContent(@Param("setmealId") Integer setmealId);

    OrderSetting queryOrderSetting(@Param("orderDate") String orderDate);

    Integer updateOrderSetting(@Param("reservations") Integer reservations,@Param("id") Integer id,@Param("version") Integer version);

    String querySetmealOrderPercent(@Param("setmealId")Integer setmealId);

    Integer queryTodayOrder(@Param("today") String today);

    Integer queryTodayVisits(@Param("today") String today);

    Integer queryThisWeekVisitsNumber(@Param("thisWeekOne") String thisWeekOne,@Param("endOfMonth") String endOfMonth);
}
